package src.main.mubanfangfa;

import src.main.mubanfangfa.cat_impl.CatEat;
import src.main.mubanfangfa.cat_impl.CatWash;

/**操作类--根据子类替换原模板*/
public class TestDemo {
    public static void main(String[] args) {

        Cat cat1=new CatEat();
        cat1.Template();

        Cat cat2=new CatWash();
        cat2.Template();
    }
}
